﻿Imports System.Configuration
Imports System.Data.SqlClient
Imports System.Data

Public Class Conexion
    Dim conexion As SqlConnection
    Public Function Conectar() As SqlConnection
        'Leemos la cadena de conexión del web.config
        conexion = New SqlConnection(ConfigurationManager.ConnectionStrings("Conexion").ConnectionString)

        Return conexion

    End Function
End Class
